<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('加减用户余额')" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-user-switchUserAmount" th:object="${user}">
			<input name="id"  type="hidden"  th:value="${user.id}" />
			<input name="version"  type="hidden"  th:value="${user.version}" />
			<div class="form-group">
				<label class="col-sm-3 control-label ">可用余额：</label>
				<div class="col-sm-8">
					<input  type="text"  th:value="${user.amount}" readonly/>分
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label ">金额(整数为加，负数为减，如增加1元：100)：</label>
				<div class="col-sm-8">
					<input name="amount"  type="text" value="0">分
				</div>
			</div>
		</form>
	</div>
	<th:block th:include="include :: footer" />
	<script type="text/javascript">
		$("#form-user-switchUserType").validate({
			focusCleanup: true
		});
		function submitHandler() {
	        if ($.validate.form()) {
	        	$.operate.save(ctx + "system/user/updateSwitchUserAmount", $('#form-user-switchUserAmount').serialize());
	        }
	    }
	</script>
</body>

</html>
